package com.cloudweb.oa.module.desktop;

import cn.js.fan.db.ResultIterator;
import cn.js.fan.db.ResultRecord;
import cn.js.fan.db.SQLFilter;
import com.cloudweb.oa.api.IDesktopCard;
import com.cloudwebsoft.framework.db.JdbcTemplate;
import com.redmoon.oa.flow.WorkflowDb;

import javax.servlet.http.HttpServletRequest;
import java.sql.SQLException;

public class DesktopCardLink implements IDesktopCard {
    DesktopCard desktopCard;

    public DesktopCardLink(DesktopCard desktopCard) {
        this.desktopCard = desktopCard;
    }

    @Override
    public String getTitle() {
        return desktopCard.getTitle();
    }

    @Override
    public int getStartVal() {
        return 0;
    }

    @Override
    public int getEndVal(HttpServletRequest request) {
        return -1;
    }

    @Override
    public boolean isLink() {
        return desktopCard.isLink();
    }

    @Override
    public String getUrl() {
        return desktopCard.getUrl();
    }

    @Override
    public String getUnit() {
        return desktopCard.getUnit();
    }

    @Override
    public String getBgColor() {
        return desktopCard.getBgColor();
    }

    @Override
    public String getIcon() {
        return desktopCard.getIcon();
    }
}
